﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Interface_Tier;
using Transfer_Object_Tier;
using System.Data;
using Data_Access_Tier;

namespace Business_Tier
{
    public class BT_HRM_CONTRACTData : MarshalByRefObject, IHRM_CONTRACTData
    {
        HRM_CONTRACTData CONTRACT = new HRM_CONTRACTData();
        public int HRM_CONTRACT_Delete(string ContractCode)
        {
            return CONTRACT.HRM_CONTRACT_Delete(ContractCode);
        }
        public int HRM_CONTRACT_Disable(string ContractCode, ref bool Enabled)
        {
            return 1;
        }
        public System.Data.DataSet HRM_CONTRACT_Get(string ContractCode)
        {
            return CONTRACT.HRM_CONTRACT_Get(ContractCode);
        }
        public System.Data.DataSet HRM_CONTRACT_GetList()
        {
            return CONTRACT.HRM_CONTRACT_GetList();
        }
        public int HRM_CONTRACT_Insert(string ContractCode, string EmployeeCode, int ContractType,
            string ContractTime, DateTime SignDate, DateTime FromDate, DateTime ToDate, decimal BasicSalary, string PayForm, string PayDate,
            string Allowance, string Insurance, string WorkTime, decimal Compensation, string Signer, string SignerPosition,
            string SignerNationality, string Company, string Address, string Tel, string CreatePlace, string Subject,
            string Description, bool IsCurrent)
        {
            return CONTRACT.HRM_CONTRACT_Insert(ContractCode, EmployeeCode, ContractType, ContractTime, SignDate, FromDate, ToDate, BasicSalary, PayForm, PayDate,
                Allowance, Insurance, WorkTime, Compensation, Signer, SignerPosition, SignerNationality, Company, Address, Tel, CreatePlace, Subject, Description, IsCurrent);
        }
        public int HRM_CONTRACT_Save(string ContractCode, string EmployeeCode, int ContractType, string ContractTime, DateTime SignDate,
            DateTime FromDate, DateTime ToDate, decimal BasicSalary, string PayForm, string PayDate, string Allowance, string Insurance,
            string WorkTime, decimal Compensation, string Signer, string SignerPosition, string SignerNationality, string Company,
            string Address, string Tel, string CreatePlace, string Subject, string Description, bool IsCurrent)
        {
            return CONTRACT.HRM_CONTRACT_Save(ContractCode, EmployeeCode, ContractType, ContractTime, SignDate, FromDate, ToDate, BasicSalary, PayForm, PayDate,
                    Allowance, Insurance, WorkTime, Compensation, Signer, SignerPosition, SignerNationality, Company, Address, Tel, CreatePlace, Subject, Description, IsCurrent);
        }
        public int HRM_CONTRACT_Update(string ContractCode, string EmployeeCode, int ContractType, string ContractTime, DateTime SignDate,
            DateTime FromDate, DateTime ToDate, decimal BasicSalary, string PayForm, string PayDate, string Allowance, string Insurance,
            string WorkTime, decimal Compensation, string Signer, string SignerPosition, string SignerNationality, string Company,
            string Address, string Tel, string CreatePlace, string Subject, string Description, bool IsCurrent)
        {
           return CONTRACT.HRM_CONTRACT_Update(ContractCode, EmployeeCode, ContractType, ContractTime, SignDate, FromDate, ToDate, BasicSalary, PayForm, PayDate,
                    Allowance, Insurance, WorkTime, Compensation, Signer, SignerPosition, SignerNationality, Company, Address, Tel, CreatePlace, Subject, Description, IsCurrent);
        }
        public DataSet HRM_CONTRACT_GetByContract(String ContractCode, String EmployeeCode)
        {
            return CONTRACT.HRM_CONTRACT_GetByContract(ContractCode,EmployeeCode);
        }
        public DataSet HRM_CONTRACT_GetByEmployee(String EmployeeCode)
        {
            return CONTRACT.HRM_CONTRACT_GetByEmployee(EmployeeCode);
        }
        public DataSet HRM_CONTRACT_GetCurrentList()
        {
            return CONTRACT.HRM_CONTRACT_GetCurrentList();
        }
        public DataSet HRM_CONTRACT_GetListByBranch(String BranchCode)
        {
            return CONTRACT.HRM_CONTRACT_GetListByBranch(BranchCode);
        }
        public DataSet HRM_CONTRACT_GetListByDepartment(String DepartmentCode)
        {
            return CONTRACT.HRM_CONTRACT_GetListByDepartment(DepartmentCode);
        }
        public DataSet HRM_CONTRACT_GetListByGroup(String GroupCode)
        {
            return CONTRACT.HRM_CONTRACT_GetListByGroup(GroupCode);
        }
        public DataSet HRM_CONTRACT_GetListExpiration()
        {
            return CONTRACT.HRM_CONTRACT_GetListExpiration();
        }
        public DataSet HRM_CONTRACT_GetListJustExpiration()
        {
            return CONTRACT.HRM_CONTRACT_GetListJustExpiration();
        }

    }
}
